package org.example.k8s_cloudplatform.utils;
import org.apache.commons.codec.digest.DigestUtils;

public class MD5Util {
    public static String md5(String password) {
        return DigestUtils.md5Hex(password );
    }

    public static boolean verify(String password, String md5) {
        String md5str = md5(password);
        return md5str.equals(md5);
    }
}